﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace HZH_Controls.Controls
{
    public class StepTimeLineItem
    {
        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        /// <value>The title.</value>
        public string Title { get; set; }
        /// <summary>
        /// Gets the details.
        /// </summary>
        /// <value>The details.</value>
        public string Details { get { return ((Content ?? "") + (string.IsNullOrWhiteSpace(ExecDateTime) ? "" : "\n" + ExecDateTime)).Trim().Trim('\n'); } }

        public string Content { get; set; }

        public string ExecDateTime { get; set; }
        /// <summary>
        /// 是否已完成
        /// </summary>
        public bool IsCompleted { get; set; } = false;

        /// <summary>
        /// 已完成步骤图片，建议24*24大小
        /// </summary>
        public Image ImgCompleted
        {
            get;
            set;
        }
        /// <summary>
        /// 步骤缺失图片,建议24*24大小
        /// </summary>
        public Image ImgMissingCompleted
        {
            get;
            set;
        }
    }
}
